/*
 * G2OClientConnect.h
 *
 *  Created on: Sep 8, 2016
 *      Author: ubuntu
 */

#ifndef SRC_G2O_G2OCLIENTCONNECT_H_
#define SRC_G2O_G2OCLIENTCONNECT_H_

#include "../ClientConnect.h"

class G2OClientConnection : public ClientConnection
{
public:
	G2OClientConnection(TcpServer *parent, struct connectop *op, struct sockaddr *addr);
	virtual ~G2OClientConnection();

protected:
	virtual bool parsePackage(unsigned char *buf, size_t n, int add_head, int add_tail);
	virtual void recv_data_output(unsigned char *buf, size_t len);

private:
	char m_obdid[13];
	char m_key[33];
};



#endif /* SRC_G2O_G2OCLIENTCONNECT_H_ */
